package com.eras.shoes.application;

import android.app.Application;

import com.eras.shoes.utils.CrashHandler;

public class MyApplication extends Application {
    public static MyApplication instance;
    public static MyApplication getInstance() {
        if (instance == null) {
            synchronized (MyApplication.class) {
                if (instance == null) {
                    instance = new MyApplication();
                }
            }
        }
        return instance;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        instance = MyApplication.this;
        CrashHandler.init(this); // 初始化崩溃捕获
    }
}
